﻿namespace WMS6.Web.CustomsServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="ImportDeclarationsInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class ImportDeclarationsInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private AttachInfo AttachInfosField;
        [OptionalField]
        private string BusinessTypeField;
        [OptionalField]
        private decimal CaseCntField;
        [OptionalField]
        private string CompanyDeclarationgsIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private DateTime DeclarationsDateField;
        [OptionalField]
        private string DeclarationsIDField;
        [OptionalField]
        private string DeclarationsTypeField;
        [OptionalField]
        private decimal ExtendedPriceField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private DateTime ImportDateField;
        [OptionalField]
        private List<ImportDeclarationsDetailInfo> ImportDeclarationsDetailInfosField;
        [OptionalField]
        private decimal NtotalEtWgtField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string OwnerOrderIDField;
        [OptionalField]
        private decimal PalletField;
        [OptionalField]
        private string ReamrkField;
        [OptionalField]
        private string ReceiptIDField;
        [OptionalField]
        private DateTime RecordDateField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private decimal TotalCubeField;
        [OptionalField]
        private decimal TotalGrossWgtField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string VerificationFormIDField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public AttachInfo AttachInfos
        {
            get
            {
                return this.AttachInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AttachInfosField, value))
                {
                    this.AttachInfosField = value;
                    this.RaisePropertyChanged("AttachInfos");
                }
            }
        }

        [DataMember]
        public string BusinessType
        {
            get
            {
                return this.BusinessTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.BusinessTypeField, value))
                {
                    this.BusinessTypeField = value;
                    this.RaisePropertyChanged("BusinessType");
                }
            }
        }

        [DataMember]
        public decimal CaseCnt
        {
            get
            {
                return this.CaseCntField;
            }
            set
            {
                if (!this.CaseCntField.Equals(value))
                {
                    this.CaseCntField = value;
                    this.RaisePropertyChanged("CaseCnt");
                }
            }
        }

        [DataMember]
        public string CompanyDeclarationgsID
        {
            get
            {
                return this.CompanyDeclarationgsIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CompanyDeclarationgsIDField, value))
                {
                    this.CompanyDeclarationgsIDField = value;
                    this.RaisePropertyChanged("CompanyDeclarationgsID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public DateTime DeclarationsDate
        {
            get
            {
                return this.DeclarationsDateField;
            }
            set
            {
                if (!this.DeclarationsDateField.Equals(value))
                {
                    this.DeclarationsDateField = value;
                    this.RaisePropertyChanged("DeclarationsDate");
                }
            }
        }

        [DataMember]
        public string DeclarationsID
        {
            get
            {
                return this.DeclarationsIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DeclarationsIDField, value))
                {
                    this.DeclarationsIDField = value;
                    this.RaisePropertyChanged("DeclarationsID");
                }
            }
        }

        [DataMember]
        public string DeclarationsType
        {
            get
            {
                return this.DeclarationsTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DeclarationsTypeField, value))
                {
                    this.DeclarationsTypeField = value;
                    this.RaisePropertyChanged("DeclarationsType");
                }
            }
        }

        [DataMember]
        public decimal ExtendedPrice
        {
            get
            {
                return this.ExtendedPriceField;
            }
            set
            {
                if (!this.ExtendedPriceField.Equals(value))
                {
                    this.ExtendedPriceField = value;
                    this.RaisePropertyChanged("ExtendedPrice");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public DateTime ImportDate
        {
            get
            {
                return this.ImportDateField;
            }
            set
            {
                if (!this.ImportDateField.Equals(value))
                {
                    this.ImportDateField = value;
                    this.RaisePropertyChanged("ImportDate");
                }
            }
        }

        [DataMember]
        public List<ImportDeclarationsDetailInfo> ImportDeclarationsDetailInfos
        {
            get
            {
                return this.ImportDeclarationsDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ImportDeclarationsDetailInfosField, value))
                {
                    this.ImportDeclarationsDetailInfosField = value;
                    this.RaisePropertyChanged("ImportDeclarationsDetailInfos");
                }
            }
        }

        [DataMember]
        public decimal NtotalEtWgt
        {
            get
            {
                return this.NtotalEtWgtField;
            }
            set
            {
                if (!this.NtotalEtWgtField.Equals(value))
                {
                    this.NtotalEtWgtField = value;
                    this.RaisePropertyChanged("NtotalEtWgt");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string OwnerOrderID
        {
            get
            {
                return this.OwnerOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerOrderIDField, value))
                {
                    this.OwnerOrderIDField = value;
                    this.RaisePropertyChanged("OwnerOrderID");
                }
            }
        }

        [DataMember]
        public decimal Pallet
        {
            get
            {
                return this.PalletField;
            }
            set
            {
                if (!this.PalletField.Equals(value))
                {
                    this.PalletField = value;
                    this.RaisePropertyChanged("Pallet");
                }
            }
        }

        [DataMember]
        public string Reamrk
        {
            get
            {
                return this.ReamrkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReamrkField, value))
                {
                    this.ReamrkField = value;
                    this.RaisePropertyChanged("Reamrk");
                }
            }
        }

        [DataMember]
        public string ReceiptID
        {
            get
            {
                return this.ReceiptIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ReceiptIDField, value))
                {
                    this.ReceiptIDField = value;
                    this.RaisePropertyChanged("ReceiptID");
                }
            }
        }

        [DataMember]
        public DateTime RecordDate
        {
            get
            {
                return this.RecordDateField;
            }
            set
            {
                if (!this.RecordDateField.Equals(value))
                {
                    this.RecordDateField = value;
                    this.RaisePropertyChanged("RecordDate");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public decimal TotalCube
        {
            get
            {
                return this.TotalCubeField;
            }
            set
            {
                if (!this.TotalCubeField.Equals(value))
                {
                    this.TotalCubeField = value;
                    this.RaisePropertyChanged("TotalCube");
                }
            }
        }

        [DataMember]
        public decimal TotalGrossWgt
        {
            get
            {
                return this.TotalGrossWgtField;
            }
            set
            {
                if (!this.TotalGrossWgtField.Equals(value))
                {
                    this.TotalGrossWgtField = value;
                    this.RaisePropertyChanged("TotalGrossWgt");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string VerificationFormID
        {
            get
            {
                return this.VerificationFormIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VerificationFormIDField, value))
                {
                    this.VerificationFormIDField = value;
                    this.RaisePropertyChanged("VerificationFormID");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

